Skip to content

ci(e2e): nightly run: independent suites, shared caches, a test run when the workflow changes - #23360

Open
friofry wants to merge 6 commits into
tests/nightly-runfrom
ab/issue-23167-nightly-review-fixes
Open

friofry wants to merge 6 commits into
tests/nightly-runfrom
ab/issue-23167-nightly-review-fixes

Conversation

@friofry

@friofry friofry commented Nov 26, 2026 •

Copy link
Copy Markdown
Contributor

Summary

Five small fixes on top of #23357, one per commit.

flowchart LR
    B1["build: suite"] --> T1["tests: all but keycard"]
    B2["build: keycard"] --> T2["tests: keycard"]
    C[("caches of master")] -. restore only .-> B1
    C -. restore only .-> B2
Loading
  • Each suite runs on its own. The two builds are one matrix job, so one failed build skipped both suites. Now a suite waits for the builds and fails only if its own archive is missing.
  • The workflow runs in a pull request that changes it. With a schedule and a manual start only, it could not run before it was on master.
  • No caches of its own. Both builds restore what the linux job of ci.yml saves on master and save nothing. The Go cache is about 550 MB and the store is at 9.8 of 10 GB.
  • The marker expression goes through the environment instead of being pasted into the script text.
  • The WalletConnect dApp's packages are installed before the tests. Nothing ran npm ci in the test image, so three tests failed with "dApp dependencies are missing".

One more commit, not about the nightly run: an e2e check that a branch rule can require. The master rule requires e2e / e2e-linux, a name no job reports, so every pull request waits on it. The suite's own name, e2e-linux / tests, would not do either: a skipped suite does not report it. The new e2e job in ci.yml reports on every run: it passes when the Linux suite passed or when nothing was built, and fails otherwise. Once it is on master, the rule can require e2e.

Evidence

The nightly workflow had not run before. Two runs from a branch with these commits and a temporary push trigger: the first with four commits, the second with the WalletConnect one added.

First run Second run
build: suite passed, 15 min passed, 14 min
build: keycard (simulator) passed, 14 min passed, 16 min
tests: all but keycard 51 passed, 4 failed 53 passed, 2 failed
tests: keycard 28 passed, 2 failed 29 passed, 1 failed
  • Both builds restored the three caches of master and saved none. The only cache the branch created is the 101 KB plugin cache of e2e.yml.
  • Each suite ran on its own build and reported its own result.
  • The three WalletConnect tests (one in the suite, two keycard) failed in the first run with WalletConnect dApp dependencies are missing and pass in the second.

The tests that still fail are not caused by these commits; they belong to #23357:

  • test_settings_edit_status_account: TypeError: string indices must be integers, in both runs, not looked into;
  • test_bridge_sepolia_eth_to_base: Low liquidity. Lower amount or try later, in both runs;
  • test_personal_sign_in_browser: Browser tab title did not match 'E2E Sign' in the first run, passed in the second; it also fails now and then in pull request runs;
  • test_onboarding_empty_keycard_log_in[3.2]: KeycardManagementPopup ... is not visible within 5000 ms in the second run, passed in the first.

This pull request changes e2e-nightly.yml, so the new trigger runs the workflow here too.

  • The e2e job: its script gave the expected result for eight combinations of build and test results, run locally. It runs on CI for the first time in this pull request.

Merge danger

Door: two-way. Blast radius: small.

The nightly workflow and one step of e2e.yml change, and ci.yml gets one job. That job blocks nothing until a rule requires it. The pull request and manual e2e runs keep their behaviour: pytest-args still defaults to critical.

The two builds are one matrix job, so its result is a failure as soon as
one of them fails, and both suites were skipped. A suite whose own build
is missing fails when it unpacks it.
With a schedule and a manual start only, the workflow could not run
before it was on master.
The nightly had Go and ccache caches of its own, one pair per build.
The Go cache alone is about 550 MB and the store is near its 10 GB
limit. Both builds now restore what the linux job of ci.yml saves on
master.
Pasted into the script text, a value with a quote or a command
substitution would run as shell.
@friofry
friofry requested a review from a team as a code owner November 26, 2026 11:23
@friofry
friofry requested review from alexjba and noeliaSD and removed request for a team November 26, 2026 11:23
@github-actions

Copy link
Copy Markdown

@friofry friofry changed the title ci(e2e): nightly run: independent suites, shared caches, a run in pull requests ci(e2e): nightly run: independent suites, shared caches, a test run when the workflow changes Nov 26, 2026
@friofry
friofry requested a review from anastasiyaig November 26, 2026 12:05
The Linux run starts the tests in the test image, where nothing ran
npm ci, so the three WalletConnect tests failed with "dApp dependencies
are missing". The Jenkins job had this step.
@friofry
friofry requested a review from a team as a code owner November 26, 2026 15:52
A rule that requires the check of the Linux suite by its own name waits
forever when the suite is skipped: a skipped e2e-linux reports as
"e2e-linux", not as "e2e-linux / tests". The e2e job reports on every
run: it passes when the suite passed or when nothing was built, and
fails otherwise.

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant